package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.applet.dto.PayOrderDto;
import com.shensi.api.admin.domian.station.dto.PayWayStationBetweenDto;
import com.shensi.common.core.annotation.Log;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.enums.BusinessType;
import com.shensi.common.core.page.TableDataInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface PayStationBetweenClient {


    /**
     * 查询油站信息列表
     */
    @GetMapping("/payWayBetween/info/list")
    public TableDataInfo list(@SpringQueryMap PayWayStationBetweenDto payWayStationBetween);

    /**
     * 获取支付方式的id信息
     */
    @GetMapping("/payWayBetween/info/getStationPayInfo")
    public TableDataInfo getStationPayInfo(@SpringQueryMap PayWayStationBetweenDto payWayStationBetween);

    /**
     * 新增油品
     */
    @PostMapping("/payWayBetween/info")
    public AjaxResult add(@RequestBody PayWayStationBetweenDto payWayStationBetween);

    /**
     * 获取油站信息详细信息
     */
    @GetMapping(value = "/payWayBetween/info/{payStationId}")
    public AjaxResult getInfo(@PathVariable("payStationId") Long payStationId);
    /**
     * 修改油站信息
     */
    @PutMapping("/payWayBetween/info")
    public AjaxResult edit(@RequestBody PayWayStationBetweenDto payWayStationBetween);
}
